package com.securityLearn.sessionAuth.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Set;

/**
 * 用户 Bean
 * @author duzq
 * @date 2021-8-26 20:40:05
 */
@Data
@AllArgsConstructor
public class UserDto {
    /**
     * 存放Session时用到的KEY
     */
    public static final String SESSION_USER_KEY = "_user";

    private String id;
    private String userName;
    private String password;
    private String fullName;
    private String mobile;

    /**
     * 用户权限
     */
    private Set<String> authorities;
}
